import React from 'react';
import {Button,modal} from "react-ui-xmui";

const DialogDemo4 = () => {
  const openModel=()=>{
    const close=modal(<h1>你好
      <Button onClick={() => close()}>close</Button>
    </h1>)

  }
  return (
    <div>
      <Button buttonType={'primary'} onClick={openModel}>use_modal</Button>

    </div>
  );
};

export default DialogDemo4;